home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland JBuilder 6
/
jbuilder6.iso
/
Documents
/
JAVA Programming
/
examples
/
07
/
PointCreateAlt.java
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Source
|
2000-09-08
|
262 b
|
16 lines
class Point { int x, y;
Point(int x, int y) {
this.x = x;
this.y = y;
}
Point() {
x = -1;
y = -1;
} }
class PointCreateAlt {
public static void main(String args[]) {
Point p = new Point();
System.out.println("x = " + p.x + " y = " + p.y);
} }